package com.roc.jpamysql.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author roc
 * @since 2024-03-22
 */
@ApiModel(value="StockDaily对象", description="")
@TableName("stock_daily")
public class StockDaily extends Model<StockDaily> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易日")
    private String stateDt;

    @ApiModelProperty(value = "股票代码")
    private String stockCode;

    @ApiModelProperty(value = "开盘价")
    private BigDecimal open;

    @ApiModelProperty(value = "收盘价")
    private BigDecimal close;

    @ApiModelProperty(value = "最高价")
    private BigDecimal high;

    @ApiModelProperty(value = "最低价")
    private BigDecimal low;

    @ApiModelProperty(value = "成交量")
    private Integer vol;

    @ApiModelProperty(value = "成交额")
    private BigDecimal amount;

    @ApiModelProperty(value = "前日收盘价")
    private BigDecimal preClose;

    @ApiModelProperty(value = "涨跌额")
    private BigDecimal amtChange;

    @ApiModelProperty(value = "涨跌幅")
    private BigDecimal pctChange;

    public String getStateDt() {
        return stateDt;
    }

    public void setStateDt(String stateDt) {
        this.stateDt = stateDt;
    }
    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }
    public BigDecimal getOpen() {
        return open;
    }

    public void setOpen(BigDecimal open) {
        this.open = open;
    }
    public BigDecimal getClose() {
        return close;
    }

    public void setClose(BigDecimal close) {
        this.close = close;
    }
    public BigDecimal getHigh() {
        return high;
    }

    public void setHigh(BigDecimal high) {
        this.high = high;
    }
    public BigDecimal getLow() {
        return low;
    }

    public void setLow(BigDecimal low) {
        this.low = low;
    }
    public Integer getVol() {
        return vol;
    }

    public void setVol(Integer vol) {
        this.vol = vol;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public BigDecimal getPreClose() {
        return preClose;
    }

    public void setPreClose(BigDecimal preClose) {
        this.preClose = preClose;
    }
    public BigDecimal getAmtChange() {
        return amtChange;
    }

    public void setAmtChange(BigDecimal amtChange) {
        this.amtChange = amtChange;
    }
    public BigDecimal getPctChange() {
        return pctChange;
    }

    public void setPctChange(BigDecimal pctChange) {
        this.pctChange = pctChange;
    }

    @Override
    protected Serializable pkVal() {
        return this.stateDt;
    }

    @Override
    public String toString() {
        return "StockDaily{" +
            "stateDt=" + stateDt +
            ", stockCode=" + stockCode +
            ", open=" + open +
            ", close=" + close +
            ", high=" + high +
            ", low=" + low +
            ", vol=" + vol +
            ", amount=" + amount +
            ", preClose=" + preClose +
            ", amtChange=" + amtChange +
            ", pctChange=" + pctChange +
        "}";
    }
}
